home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
VRML 2.0 Sourcebook (2nd Edition)
/
VRML 2.0 Sourcebook CD [md5 fed90f4f9c39d5a60d477058775c7e21].iso
/
software
/
radiance
/
ez3d
/
win95nt
/
data.z
/
boxDragger.iv
< prev
next >
Wrap
Text File
|
1995-12-04
|
23KB
|
844 lines
#Inventor V2.0 ascii
DEF boxOverallStyle Group {
DrawStyle { style LINES lineWidth 1 }
LightModel { model PHONG }
Texture2 {}
NormalBinding { value DEFAULT }
Normal {}
Material {
diffuseColor [ 0 .8 0 ]
emissiveColor [ 0 .8 0 ]
}
Complexity { value .01 textureQuality 0 }
Font { name "Helvetica-Bold" size 15 }
}
DEF SO_BOX_DRAGGER_TRANSLATOR_STYLE Group {
DrawStyle { style LINES lineWidth 2 }
}
DEF SO_BOX_DRAGGER_CUBE_COORDS Coordinate3 {
point [ -1.001 1.001 1.001, 1.001 1.001 1.001, 1.001 1.001 -1.001, -1.001 1.001 -1.001,
-1.001 -1.001 1.001, 1.001 -1.001 1.001, 1.001 -1.001 -1.001, -1.001 -1.001 -1.001 ]
}
DEF boxTranslator1 Separator {
renderCaching ON
USE SO_BOX_DRAGGER_CUBE_COORDS
DrawStyle { style INVISIBLE }
IndexedFaceSet { coordIndex [ 0, 1, 2, 3 ] }
USE SO_BOX_DRAGGER_TRANSLATOR_STYLE
# IndexedLineSet { coordIndex [ 0, 1, 2, 3, 0 ] }
IndexedLineSet {
coordIndex [ 0, 1, -1, 1, 2, -1, 2, 3, -1, 3, 0, -1, ]
}
}
DEF boxTranslator2 Separator {
renderCaching ON
USE SO_BOX_DRAGGER_CUBE_COORDS
DrawStyle { style INVISIBLE }
IndexedFaceSet { coordIndex [ 7, 6, 5, 4 ] }
USE SO_BOX_DRAGGER_TRANSLATOR_STYLE
# IndexedLineSet { coordIndex [ 7, 6, 5, 4, 7 ] }
IndexedLineSet {
coordIndex [ 4, 5, -1, 5, 6, -1, 6, 7, -1, 7, 4, -1, ]
}
}
DEF boxTranslator3 Separator {
renderCaching ON
USE SO_BOX_DRAGGER_CUBE_COORDS
DrawStyle { style INVISIBLE }
IndexedFaceSet { coordIndex [ 0, 3, 7, 4 ] }
USE SO_BOX_DRAGGER_TRANSLATOR_STYLE
# IndexedLineSet { coordIndex [ 0, 3, 7, 4, 0 ] }
IndexedLineSet {
coordIndex [ 3, 0, -1, 0, 4, -1, 3, 7, -1, 7, 4, -1, ]
}
}
DEF boxTranslator4 Separator {
renderCaching ON
USE SO_BOX_DRAGGER_CUBE_COORDS
DrawStyle { style INVISIBLE }
IndexedFaceSet { coordIndex [ 5, 6, 2, 1 ] }
USE SO_BOX_DRAGGER_TRANSLATOR_STYLE
# IndexedLineSet { coordIndex [ 5, 6, 2, 1, 5 ] }
IndexedLineSet {
coordIndex [ 1, 2, -1, 1, 5, -1, 2, 6, -1, 5, 6, -1, ]
}
}
DEF boxTranslator5 Separator {
renderCaching ON
USE SO_BOX_DRAGGER_CUBE_COORDS
DrawStyle { style INVISIBLE }
IndexedFaceSet { coordIndex [ 0, 4, 5, 1 ] }
USE SO_BOX_DRAGGER_TRANSLATOR_STYLE
# IndexedLineSet { coordIndex [ 0, 4, 5, 1, 0 ] }
IndexedLineSet {
coordIndex [ 0, 1, -1, 0, 4, -1, 1, 5, -1, 4, 5, -1, ]
}
}
DEF boxTranslator6 Separator {
renderCaching ON
USE SO_BOX_DRAGGER_CUBE_COORDS
DrawStyle { style INVISIBLE }
IndexedFaceSet { coordIndex [ 3, 2, 6, 7 ] }
USE SO_BOX_DRAGGER_TRANSLATOR_STYLE
# IndexedLineSet { coordIndex [ 3, 2, 6, 7, 3 ] }
IndexedLineSet {
coordIndex [ 2, 3, -1, 2, 6, -1, 3, 7, -1, 6, 7, -1, ]
}
}
DEF SO_BOX_DRAGGER_TRANSLATOR_STYLE_ACTIVE Group {
Material {
diffuseColor [ .8 .8 0.0 ]
emissiveColor [ .8 .8 0.0 ]
}
DrawStyle { style LINES lineWidth 3 }
ShapeHints {
vertexOrdering COUNTERCLOCKWISE
}
NormalBinding { value OVERALL }
}
DEF boxTranslator1Active Separator {
renderCaching ON
USE SO_BOX_DRAGGER_TRANSLATOR_STYLE_ACTIVE
Normal { vector [ 0 1 0 ] }
Coordinate3 { point [ 1 1 1, 1 1 -1, -1 1 -1, -1 1 1 ] }
FaceSet { }
}
DEF boxTranslator2Active Separator {
renderCaching ON
USE SO_BOX_DRAGGER_TRANSLATOR_STYLE_ACTIVE
Normal { vector [ 0 -1 0 ] }
Coordinate3 { point [ 1 -1 1, 1 -1 -1, -1 -1 -1, -1 -1 1 ] }
FaceSet { }
}
DEF boxTranslator3Active Separator {
renderCaching ON
USE SO_BOX_DRAGGER_TRANSLATOR_STYLE_ACTIVE
Normal { vector [ -1 0 0 ] }
Coordinate3 { point [ -1 1 1, -1 1 -1, -1 -1 -1, -1 -1 1 ] }
FaceSet { }
}
DEF boxTranslator4Active Separator {
renderCaching ON
USE SO_BOX_DRAGGER_TRANSLATOR_STYLE_ACTIVE
Normal { vector [ 1 0 0 ] }
Coordinate3 { point [ 1 1 1, 1 1 -1, 1 -1 -1, 1 -1 1 ] }
FaceSet { }
}
DEF boxTranslator5Active Separator {
renderCaching ON
USE SO_BOX_DRAGGER_TRANSLATOR_STYLE_ACTIVE
Normal { vector [ 0 0 1 ] }
Coordinate3 { point [ 1 1 1, 1 -1 1, -1 -1 1, -1 1 1 ] }
FaceSet { }
}
DEF boxTranslator6Active Separator {
renderCaching ON
USE SO_BOX_DRAGGER_TRANSLATOR_STYLE_ACTIVE
Normal { vector [ 0 0 -1 ] }
Coordinate3 { point [ 1 1 -1, 1 -1 -1, -1 -1 -1, -1 1 -1 ] }
FaceSet { }
}
DEF SO_BOX_DRAGGER_ROTATOR_STYLE Group {
Material {
diffuseColor [ 0.0 .8 0.0 ]
emissiveColor [ 0.0 .8 0.0 ]
}
DrawStyle { lineWidth 1 }
Complexity { value .3 textureQuality 0 }
}
DEF SO_BOX_DRAGGER_ROTATOR_STYLE_ACTIVE Group {
Material {
diffuseColor [ .8 .8 0.0 ]
emissiveColor [ .8 .8 0.0 ]
}
DrawStyle { lineWidth 3 }
Complexity { value .3 textureQuality 0 }
}
DEF SO_BOX_DRAGGER_ROTATOR_1 Group {
Coordinate3 { point [ 0 0 0, 0 1.1 0 ] }
LineSet {}
Translation { translation 0 1.05 0 }
Sphere { radius .05 }
Translation { translation 0 .05 0 }
Text2 { string "Y" }
}
DEF SO_BOX_DRAGGER_ROTATOR_2 Group {
Coordinate3 { point [ 0 0 0, 0 -1.1 0 ] }
LineSet {}
Translation { translation 0 -1.1 0 }
Sphere { radius .1 }
}
DEF SO_BOX_DRAGGER_ROTATOR_3 Group {
Coordinate3 { point [ 0 0 0, -1.1 0 0 ] }
LineSet {}
Translation { translation -1.1 0 0 }
Sphere { radius .1 }
}
DEF SO_BOX_DRAGGER_ROTATOR_4 Group {
Coordinate3 { point [ 0 0 0, 1.1 0 0 ] }
LineSet {}
Translation { translation 1.1 0 0 }
Sphere { radius .05 }
Translation { translation .05 0 0 }
Text2 { string "X" }
}
DEF SO_BOX_DRAGGER_ROTATOR_5 Group {
Coordinate3 { point [ 0 0 0, 0 0 1.1 ] }
LineSet {}
Translation { translation 0 0 1.1 }
Sphere { radius .05 }
Translation { translation 0 0 .05 }
Text2 { string "Z" }
}
DEF SO_BOX_DRAGGER_ROTATOR_6 Group {
Coordinate3 { point [ 0 0 0, 0 0 -1.1 ] }
LineSet {}
Translation { translation 0 0 -1.1 }
Sphere { radius .1 }
}
DEF boxRotator1 Separator {
renderCaching ON
USE SO_BOX_DRAGGER_ROTATOR_STYLE
USE SO_BOX_DRAGGER_ROTATOR_1
}
DEF boxRotator2 Separator {
renderCaching ON
USE SO_BOX_DRAGGER_ROTATOR_STYLE
USE SO_BOX_DRAGGER_ROTATOR_2
}
DEF boxRotator3 Separator {
renderCaching ON
USE SO_BOX_DRAGGER_ROTATOR_STYLE
USE SO_BOX_DRAGGER_ROTATOR_3
}
DEF boxRotator4 Separator {
renderCaching ON
USE SO_BOX_DRAGGER_ROTATOR_STYLE
USE SO_BOX_DRAGGER_ROTATOR_4
}
DEF boxRotator5 Separator {
renderCaching ON
USE SO_BOX_DRAGGER_ROTATOR_STYLE
USE SO_BOX_DRAGGER_ROTATOR_5
}
DEF boxRotator6 Separator {
renderCaching ON
USE SO_BOX_DRAGGER_ROTATOR_STYLE
USE SO_BOX_DRAGGER_ROTATOR_6
}
DEF boxRotator1Active Separator {
renderCaching ON
USE SO_BOX_DRAGGER_ROTATOR_STYLE_ACTIVE
USE SO_BOX_DRAGGER_ROTATOR_1
}
DEF boxRotator2Active Separator {
renderCaching ON
USE SO_BOX_DRAGGER_ROTATOR_STYLE_ACTIVE
USE SO_BOX_DRAGGER_ROTATOR_2
}
DEF boxRotator3Active Separator {
renderCaching ON
USE SO_BOX_DRAGGER_ROTATOR_STYLE_ACTIVE
USE SO_BOX_DRAGGER_ROTATOR_3
}
DEF boxRotator4Active Separator {
renderCaching ON
USE SO_BOX_DRAGGER_ROTATOR_STYLE_ACTIVE
USE SO_BOX_DRAGGER_ROTATOR_4
}
DEF boxRotator5Active Separator {
renderCaching ON
USE SO_BOX_DRAGGER_ROTATOR_STYLE_ACTIVE
USE SO_BOX_DRAGGER_ROTATOR_5
}
DEF boxRotator6Active Separator {
renderCaching ON
USE SO_BOX_DRAGGER_ROTATOR_STYLE_ACTIVE
USE SO_BOX_DRAGGER_ROTATOR_6
}
DEF SO_BOX_DRAGGER_SCALING_STYLE Group {
DrawStyle { lineWidth 1 }
}
DEF SO_BOX_DRAGGER_SCALING_STYLE_ACTIVE Group {
Material {
diffuseColor [ .8 .8 0.0 ]
emissiveColor [ .8 .8 0.0 ]
}
DrawStyle { lineWidth 3 }
}
DEF SO_BOX_DRAGGER_SCALE_1 Group {
Translation { translation 1 1 1 }
Cube { width .2 height .2 depth .2 }
}
DEF SO_BOX_DRAGGER_SCALE_2 Group {
Translation { translation 1 1 -1 }
Cube { width .2 height .2 depth .2 }
}
DEF SO_BOX_DRAGGER_SCALE_3 Group {
Translation { translation 1 -1 1 }
Cube { width .2 height .2 depth .2 }
}
DEF SO_BOX_DRAGGER_SCALE_4 Group {
Translation { translation 1 -1 -1 }
Cube { width .2 height .2 depth .2 }
}
DEF SO_BOX_DRAGGER_SCALE_5 Group {
Translation { translation -1 1 1 }
Cube { width .2 height .2 depth .2 }
}
DEF SO_BOX_DRAGGER_SCALE_6 Group {
Translation { translation -1 1 -1 }
Cube { width .2 height .2 depth .2 }
}
DEF SO_BOX_DRAGGER_SCALE_7 Group {
Translation { translation -1 -1 1 }
Cube { width .2 height .2 depth .2 }
}
DEF SO_BOX_DRAGGER_SCALE_8 Group {
Translation { translation -1 -1 -1 }
Cube { width .2 height .2 depth .2 }
}
DEF boxScale1 Separator {
renderCaching ON
USE SO_BOX_DRAGGER_SCALING_STYLE
USE SO_BOX_DRAGGER_SCALE_1
}
DEF boxScale2 Separator {
renderCaching ON
USE SO_BOX_DRAGGER_SCALING_STYLE
USE SO_BOX_DRAGGER_SCALE_2
}
DEF boxScale3 Separator {
renderCaching ON
USE SO_BOX_DRAGGER_SCALING_STYLE
USE SO_BOX_DRAGGER_SCALE_3
}
DEF boxScale4 Separator {
renderCaching ON
USE SO_BOX_DRAGGER_SCALING_STYLE
USE SO_BOX_DRAGGER_SCALE_4
}
DEF boxScale5 Separator {
renderCaching ON
USE SO_BOX_DRAGGER_SCALING_STYLE
USE SO_BOX_DRAGGER_SCALE_5
}
DEF boxScale6 Separator {
renderCaching ON
USE SO_BOX_DRAGGER_SCALING_STYLE
USE SO_BOX_DRAGGER_SCALE_6
}
DEF boxScale7 Separator {
renderCaching ON
USE SO_BOX_DRAGGER_SCALING_STYLE
USE SO_BOX_DRAGGER_SCALE_7
}
DEF boxScale8 Separator {
renderCaching ON
USE SO_BOX_DRAGGER_SCALING_STYLE
USE SO_BOX_DRAGGER_SCALE_8
}
DEF boxScale1Active Separator {
renderCaching ON
USE SO_BOX_DRAGGER_SCALING_STYLE_ACTIVE
USE SO_BOX_DRAGGER_SCALE_1
}
DEF boxScale2Active Separator {
renderCaching ON
USE SO_BOX_DRAGGER_SCALING_STYLE_ACTIVE
USE SO_BOX_DRAGGER_SCALE_2
}
DEF boxScale3Active Separator {
renderCaching ON
USE SO_BOX_DRAGGER_SCALING_STYLE_ACTIVE
USE SO_BOX_DRAGGER_SCALE_3
}
DEF boxScale4Active Separator {
renderCaching ON
USE SO_BOX_DRAGGER_SCALING_STYLE_ACTIVE
USE SO_BOX_DRAGGER_SCALE_4
}
DEF boxScale5Active Separator {
renderCaching ON
USE SO_BOX_DRAGGER_SCALING_STYLE_ACTIVE
USE SO_BOX_DRAGGER_SCALE_5
}
DEF boxScale6Active Separator {
renderCaching ON
USE SO_BOX_DRAGGER_SCALING_STYLE_ACTIVE
USE SO_BOX_DRAGGER_SCALE_6
}
DEF boxScale7Active Separator {
renderCaching ON
USE SO_BOX_DRAGGER_SCALING_STYLE_ACTIVE
USE SO_BOX_DRAGGER_SCALE_7
}
DEF boxScale8Active Separator {
renderCaching ON
USE SO_BOX_DRAGGER_SCALING_STYLE_ACTIVE
USE SO_BOX_DRAGGER_SCALE_8
}
DEF SO_BOX_DRAGGER_FEEDBACK_STYLE Group {
PickStyle { style UNPICKABLE }
Material {
diffuseColor [ 0.36 0.05 0.44 ]
emissiveColor [ 0.36 0.05 0.44 ]
}
DrawStyle { lineWidth 1 }
Complexity { value .3 textureQuality 0 }
}
DEF SO_BOX_DRAGGER_FEEDBACK_ACTIVE_STYLE Group {
PickStyle { style UNPICKABLE }
Material {
diffuseColor [ .8 .8 0 ]
emissiveColor [ .8 .8 0 ]
}
DrawStyle { lineWidth 1 }
Complexity { value .3 textureQuality 0 }
}
DEF SO_BOX_DRAGGER_FEEDBACK_SELECT_STYLE Group {
PickStyle { style UNPICKABLE }
Material {
diffuseColor [ 0.8 0.3 0.1 ]
emissiveColor [ 0.8 0.3 0.1 ]
}
DrawStyle { lineWidth 1 }
Complexity { value .3 textureQuality 0 }
}
DEF SO_BOX_DRAGGER_Y_AXIS Group {
# shaft
Coordinate3 { point [ 0 -5. 0, 0 5. 0 ] }
LineSet {}
# top
Translation { translation 0 5. 0 }
Cone { height 0.075 bottomRadius 0.0375 }
# bottom
Translation { translation 0 -10. 0 }
RotationXYZ { axis Z angle 3.14159 }
Cone { height 0.075 bottomRadius 0.0375 }
}
DEF boxXAxisFeedback Separator {
renderCaching ON
USE SO_BOX_DRAGGER_FEEDBACK_STYLE
RotationXYZ { axis Z angle 1.57079 }
USE SO_BOX_DRAGGER_Y_AXIS
}
DEF boxYAxisFeedback Separator {
renderCaching ON
USE SO_BOX_DRAGGER_FEEDBACK_STYLE
USE SO_BOX_DRAGGER_Y_AXIS
}
DEF boxZAxisFeedback Separator {
renderCaching ON
USE SO_BOX_DRAGGER_FEEDBACK_STYLE
RotationXYZ { axis X angle 1.57079 }
USE SO_BOX_DRAGGER_Y_AXIS
}
DEF boxXAxisFeedbackActive Separator {
renderCaching ON
USE SO_BOX_DRAGGER_FEEDBACK_ACTIVE_STYLE
RotationXYZ { axis Z angle 1.57079 }
USE SO_BOX_DRAGGER_Y_AXIS
}
DEF boxYAxisFeedbackActive Separator {
renderCaching ON
USE SO_BOX_DRAGGER_FEEDBACK_ACTIVE_STYLE
USE SO_BOX_DRAGGER_Y_AXIS
}
DEF boxZAxisFeedbackActive Separator {
renderCaching ON
USE SO_BOX_DRAGGER_FEEDBACK_ACTIVE_STYLE
RotationXYZ { axis X angle 1.57079 }
USE SO_BOX_DRAGGER_Y_AXIS
}
DEF boxXAxisFeedbackSelect Separator {
renderCaching ON
USE SO_BOX_DRAGGER_FEEDBACK_SELECT_STYLE
RotationXYZ { axis Z angle 1.57079 }
USE SO_BOX_DRAGGER_Y_AXIS
}
DEF boxYAxisFeedbackSelect Separator {
renderCaching ON
USE SO_BOX_DRAGGER_FEEDBACK_SELECT_STYLE
USE SO_BOX_DRAGGER_Y_AXIS
}
DEF boxZAxisFeedbackSelect Separator {
renderCaching ON
USE SO_BOX_DRAGGER_FEEDBACK_SELECT_STYLE
RotationXYZ { axis X angle 1.57079 }
USE SO_BOX_DRAGGER_Y_AXIS
}
DEF boxXCrosshairFeedback Separator {
renderCaching ON
USE SO_BOX_DRAGGER_FEEDBACK_ACTIVE_STYLE
Coordinate3 { point [ -0.125 0 0, 0.125 0 0 ] }
LineSet {}
}
DEF boxYCrosshairFeedback Separator {
renderCaching ON
USE SO_BOX_DRAGGER_FEEDBACK_ACTIVE_STYLE
Coordinate3 { point [ 0 -0.125 0, 0 0.125 0 ] }
LineSet {}
}
DEF boxZCrosshairFeedback Separator {
renderCaching ON
USE SO_BOX_DRAGGER_FEEDBACK_ACTIVE_STYLE
Coordinate3 { point [ 0 0 -0.125, 0 0 0.125 ] }
LineSet {}
}
DEF SO_BOX_RADIAL_FEEDBACK_VERTICAL Group {
# A vertical axis 4.5 units tall
# shaft
Coordinate3 { point [ 0 -2.2 0, 0 2.2 0 ] }
LineSet {}
# top cone
Translation { translation 0 2.2 0 }
Cone { height 0.075 bottomRadius 0.0375 }
# bottom cone
Translation { translation 0 -4.4 0 }
RotationXYZ { axis Z angle 3.14159 }
Cone { height 0.075 bottomRadius 0.0375 }
}
DEF boxRadialFeedback Separator {
renderCaching ON
USE SO_BOX_DRAGGER_FEEDBACK_STYLE
# 4 different diagonals
Separator {
Rotation { rotation 1 0 1 .95531662 }
USE SO_BOX_RADIAL_FEEDBACK_VERTICAL
}
Separator {
Rotation { rotation -1 0 1 .95531662 }
USE SO_BOX_RADIAL_FEEDBACK_VERTICAL
}
Separator {
Rotation { rotation -1 0 -1 .95531662 }
USE SO_BOX_RADIAL_FEEDBACK_VERTICAL
}
Separator {
Rotation { rotation 1 0 -1 .95531662 }
USE SO_BOX_RADIAL_FEEDBACK_VERTICAL
}
}
DEF SO_BOX_Y_CIRCLE_COORDS_AND_NORMALS Group {
# Scale this up from unit size to intersect our rotation knobs:
Scale { scaleFactor 1.1 1.1 1.1 }
NormalBinding { value PER_VERTEX }
Coordinate3 {
point [
# first quadrant
1.0 0 0.0,
0.980785 0 0.195090,
0.923880 0 0.382683,
0.831470 0 0.555570,
0.707107 0 0.707107,
0.555570 0 0.831470,
0.382683 0 0.923880,
0.195090 0 0.980785,
0.0 0 1.0,
# second quadrant
0.0 0 1.0,
-0.195090 0 0.980785,
-0.382683 0 0.923880,
-0.555570 0 0.831470,
-0.707107 0 0.707107,
-0.831470 0 0.555570,
-0.923880 0 0.382683,
-0.980785 0 0.195090,
-1.0 0 0.0,
# third quadrant
-1.0 0 0.0,
-0.980785 0 -0.195090,
-0.923880 0 -0.382683,
-0.831470 0 -0.555570,
-0.707107 0 -0.707107,
-0.555570 0 -0.831470,
-0.382683 0 -0.923880,
-0.195090 0 -0.980785,
0.0 0 -1.0,
# fourth quadrant
0.0 0 -1.0,
0.195090 0 -0.980785,
0.382683 0 -0.923880,
0.555570 0 -0.831470,
0.707107 0 -0.707107,
0.831470 0 -0.555570,
0.923880 0 -0.382683,
0.980785 0 -0.195090,
1.0 0 0.0,
]
}
Normal {
vector [
# first quadrant
1.0 0 0.0,
0.980785 0 0.195090,
0.923880 0 0.382683,
0.831470 0 0.555570,
0.707107 0 0.707107,
0.555570 0 0.831470,
0.382683 0 0.923880,
0.195090 0 0.980785,
0.0 0 1.0,
# second quadrant
0.0 0 1.0,
-0.195090 0 0.980785,
-0.382683 0 0.923880,
-0.555570 0 0.831470,
-0.707107 0 0.707107,
-0.831470 0 0.555570,
-0.923880 0 0.382683,
-0.980785 0 0.195090,
-1.0 0 0.0,
# third quadrant
-1.0 0 0.0,
-0.980785 0 -0.195090,
-0.923880 0 -0.382683,
-0.831470 0 -0.555570,
-0.707107 0 -0.707107,
-0.555570 0 -0.831470,
-0.382683 0 -0.923880,
-0.195090 0 -0.980785,
0.0 0 -1.0,
# fourth quadrant
0.0 0 -1.0,
0.195090 0 -0.980785,
0.382683 0 -0.923880,
0.555570 0 -0.831470,
0.707107 0 -0.707107,
0.831470 0 -0.555570,
0.923880 0 -0.382683,
0.980785 0 -0.195090,
1.0 0 0.0,
]
}
}
DEF boxXCircleFeedback Separator {
renderCaching ON
USE SO_BOX_DRAGGER_FEEDBACK_STYLE
RotationXYZ { axis Z angle 1.57079 }
USE SO_BOX_Y_CIRCLE_COORDS_AND_NORMALS
LineSet {}
}
DEF boxYCircleFeedback Separator {
renderCaching ON
USE SO_BOX_DRAGGER_FEEDBACK_STYLE
USE SO_BOX_Y_CIRCLE_COORDS_AND_NORMALS
LineSet {}
}
DEF boxZCircleFeedback Separator {
renderCaching ON
USE SO_BOX_DRAGGER_FEEDBACK_STYLE
RotationXYZ { axis X angle 1.57079 }
USE SO_BOX_Y_CIRCLE_COORDS_AND_NORMALS
LineSet {}
}
# A purple box with a yellow top.
# The top will be aligned by the dragger to
# match the plane of motion
DEF boxTranslateBoxFeedback Separator {
renderCaching ON
USE SO_BOX_DRAGGER_FEEDBACK_STYLE
Coordinate3 {
point [
-1 1 -1, -1 -1 -1,
1 1 -1, 1 -1 -1,
1 1 1, 1 -1 1,
-1 1 1, -1 -1 1,
-1 -1 -1, 1 -1 -1,
1 -1 -1, 1 -1 1,
1 -1 1,-1 -1 1,
-1 -1 1,-1 -1 -1,
]
}
LineSet {
numVertices [ 2, 2, 2, 2, 2, 2, 2, 2 ]
}
USE SO_BOX_DRAGGER_TRANSLATOR_STYLE_ACTIVE
Coordinate3 {
point [
-1 1 -1, 1 1 -1, 1 1 -1, 1 1 1,
1 1 1,-1 1 1, -1 1 1,-1 1 -1,
]
}
LineSet {}
}
# A purple box made of lines.
DEF boxScaleBoxFeedback Separator {
renderCaching ON
USE SO_BOX_DRAGGER_FEEDBACK_STYLE
DrawStyle { style LINES lineWidth 1 }
Cube {}
}
DEF boxPosXWallFeedback Separator {
renderCaching ON
USE SO_BOX_DRAGGER_FEEDBACK_STYLE
Material { diffuseColor ~ emissiveColor ~ transparency 0.5 }
Coordinate3 { point [ 1 1 1, 1 1 -1, 1 -1 -1, 1 -1 1 ] }
FaceSet {}
}
DEF boxPosYWallFeedback Separator {
renderCaching ON
USE SO_BOX_DRAGGER_FEEDBACK_STYLE
Material { diffuseColor ~ emissiveColor ~ transparency 0.5 }
Coordinate3 { point [ 1 1 1, -1 1 1, -1 1 -1, 1 1 -1 ] }
FaceSet {}
}
DEF boxPosZWallFeedback Separator {
renderCaching ON
USE SO_BOX_DRAGGER_FEEDBACK_STYLE
Material { diffuseColor ~ emissiveColor ~ transparency 0.5 }
Coordinate3 { point [ 1 1 1, 1 -1 1, -1 -1 1, -1 1 1 ] }
FaceSet {}
}
DEF boxNegXWallFeedback Separator {
renderCaching ON
USE SO_BOX_DRAGGER_FEEDBACK_STYLE
Material { diffuseColor ~ emissiveColor ~ transparency 0.5 }
Coordinate3 { point [ -1 1 1, -1 1 -1, -1 -1 -1, -1 -1 1 ] }
FaceSet {}
}
DEF boxNegYWallFeedback Separator {
renderCaching ON
USE SO_BOX_DRAGGER_FEEDBACK_STYLE
Material { diffuseColor ~ emissiveColor ~ transparency 0.5 }
Coordinate3 { point [ 1 -1 1, -1 -1 1, -1 -1 -1, 1 -1 -1 ] }
FaceSet {}
}
DEF boxNegZWallFeedback Separator {
renderCaching ON
USE SO_BOX_DRAGGER_FEEDBACK_STYLE
Material { diffuseColor ~ emissiveColor ~ transparency 0.5 }
Coordinate3 { point [ 1 1 -1, 1 -1 -1, -1 -1 -1, -1 1 -1 ] }
FaceSet {}
}
DEF boxPosXRoundWallFeedback Separator {
# No render caching, since antiSquish always blows cache when
# shown as feedback (when matrix affecting it is constantly changing)
renderCaching OFF
USE SO_BOX_DRAGGER_FEEDBACK_STYLE
Transform { rotation 0 0 1 1.57079 translation 1 0 0 }
AntiSquish {}
Coordinate3 { point [ -1 0 0, 1 0 0, 0 0 -1, 0 0 1, 0 -1 0, 0 1 0 ] }
LineSet { numVertices [ 2, 2, 2 ] }
# Sphere { radius .25 }
}
DEF boxPosYRoundWallFeedback Separator {
# No render caching, since antiSquish always blows cache when
# shown as feedback (when matrix affecting it is constantly changing)
USE SO_BOX_DRAGGER_FEEDBACK_STYLE
Translation { translation 0 1 0 }
AntiSquish {}
Coordinate3 { point [ -1 0 0, 1 0 0, 0 0 -1, 0 0 1, 0 -1 0, 0 1 0 ] }
LineSet { numVertices [ 2, 2, 2 ] }
# Sphere { radius .25 }
}
DEF boxPosZRoundWallFeedback Separator {
# No render caching, since antiSquish always blows cache when
# shown as feedback (when matrix affecting it is constantly changing)
USE SO_BOX_DRAGGER_FEEDBACK_STYLE
Transform { rotation 1 0 0 1.57079 translation 0 0 1 }
AntiSquish {}
Coordinate3 { point [ -1 0 0, 1 0 0, 0 0 -1, 0 0 1, 0 -1 0, 0 1 0 ] }
LineSet { numVertices [ 2, 2, 2 ] }
# Sphere { radius .25 }
}
DEF boxNegXRoundWallFeedback Separator {
# No render caching, since antiSquish always blows cache when
# shown as feedback (when matrix affecting it is constantly changing)
USE SO_BOX_DRAGGER_FEEDBACK_STYLE
Transform { rotation 0 0 1 1.57079 translation -1 0 0 }
AntiSquish {}
Coordinate3 { point [ -1 0 0, 1 0 0, 0 0 -1, 0 0 1, 0 -1 0, 0 1 0 ] }
LineSet { numVertices [ 2, 2, 2 ] }
# Sphere { radius .25 }
}
DEF boxNegYRoundWallFeedback Separator {
# No render caching, since antiSquish always blows cache when
# shown as feedback (when matrix affecting it is constantly changing)
USE SO_BOX_DRAGGER_FEEDBACK_STYLE
Translation { translation 0 -1 0 }
AntiSquish {}
Coordinate3 { point [ -1 0 0, 1 0 0, 0 0 -1, 0 0 1, 0 -1 0, 0 1 0 ] }
LineSet { numVertices [ 2, 2, 2 ] }
# Sphere { radius .25 }
}
DEF boxNegZRoundWallFeedback Separator {
# No render caching, since antiSquish always blows cache when
# shown as feedback (when matrix affecting it is constantly changing)
USE SO_BOX_DRAGGER_FEEDBACK_STYLE
Transform { rotation 1 0 0 1.57079 translation 0 0 -1 }
AntiSquish {}
Coordinate3 { point [ -1 0 0, 1 0 0, 0 0 -1, 0 0 1, 0 -1 0, 0 1 0 ] }
LineSet { numVertices [ 2, 2, 2 ] }
# Sphere { radius .25 }
}
DEF boxLocateMaterial Material {
emissiveColor .8 .3 .1
diffuseColor .8 .3 .1
}